package com.distribute.captcha;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

public class ImageCode extends ValidateCode {
	// BufferedImage类是具有缓冲区的Image类,Image类是用于描述图像信息的类 
	private BufferedImage image; 
	
	public ImageCode(BufferedImage image, String code, int expireTime) {  
        super(code, expireTime);  
        this.image = image;  
    }  
  
    public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {  
        super(code, expireTime);  
        this.image = image;  
    }  
  
    public BufferedImage getImage() {  
        return image;  
    }  
  
    public void setImage(BufferedImage image) {  
        this.image = image;  
    }  

}
